
package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Form;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FormMapper {
    List<Form> selectFormList1(@Param("form") Form form, Integer pageNum, Integer pageSize);

    int selectFormCount(@Param("form") Form form);

    Form selectFormById(Long id);

    int insertForm(@Param("form") Form form);

    int updateForm(@Param("form") Form form);

    int deleteFormById(Long id);
    
    @Select("SELECT * FROM sys_form WHERE form_name = #{formName} AND tenant_id = #{tenantId}")
    Form selectFormByName(@Param("formName") String formName, @Param("tenantId") Long tenantId);
}
